package net.gaox.designs.behaviors.strategys.service.impl;

import net.gaox.designs.behaviors.strategys.entity.MessageInfo;
import net.gaox.designs.behaviors.strategys.annotation.MsgTypeHandler;
import net.gaox.designs.behaviors.strategys.model.enums.MSG_TYPE;
import net.gaox.designs.behaviors.strategys.service.MessageService;
import org.springframework.stereotype.Service;

/**
 * <p>  </p>
 *
 * @author gaox·Eric
 * @date 2020/2/25 14:52
 */
@Service
@MsgTypeHandler(value = MSG_TYPE.IMAGE)
public class ImageMessageServiceImpl implements MessageService {

    @Override
    public void handleMessage(MessageInfo messageInfo) {
        System.out.println("处理图片消息 " + messageInfo.getContent());
    }
}